package com.scs.application.modules.base.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 检验设备
 * </p>
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "检验设备")
@TableName("base_inspection_equipment")
public class InspectionEquipment extends DataEntity {

    @EntityFieldAnnotation(
            text = "设备名称",
            length = "100",
            not_null = true,
            default_value = ""
    )
    private String name;

    @EntityFieldAnnotation(
            text = "设备编码",
            length = "20",
            not_null = true,
            default_value = ""
    )
    private String code;

    @EntityFieldAnnotation(
            text = "",
            length = "30",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String sn;

    @EntityFieldAnnotation(
            text = "",
            length = "30",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String rfid;

    @EntityFieldAnnotation(
            text = "",
            length = "100",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String udi;

    @EntityFieldAnnotation(
            text = "试剂组id",
            type = EntityFieldType.LONG,
            length = "",
            not_null = true,
            default_value = ""
    )
    private String reagentTeamId;

    @EntityFieldAnnotation(
            text = "是否检验设备",
            length = "",
            not_null = false,
            default_value = "0",
            comment = "1:是,0:否"
    )
    private Boolean flagTesting;

}
